-- ==================== bufferline ====================
require("bufferline").setup {
  options = {
    -- 只会显示标签页
    -- mode = "tabs",
    -- diagnostics = 'coc',
    tab_size = 22,
    -- diagnostics = "nvim_lsp",
    themable = true,
    indicator = {
      icon = "▎",
      style = 'icon',
    },
    custom_areas = {
      right = function()
        local result = {}
        table.insert(result, { text = "" })
        table.insert(result, { text = "      ", fg = "#A2A2A2" })
        return result
      end,
    },
    offsets = {
      {
        filetype = "coc-explorer",
        text = " File Explorer",
        highlight = "BufferLineFill",
        padding = 0,
      },
      {
        filetype = "undotree",
        text = "פּ UndoTree",
        highlight = "BufferLineFill",
        padding = 0,
      },
      {
        filetype = "NvimTree",
        text = " file explorer",
        highlight = "bufferlinefill",
      },
      {
        filetype = "neo-tree",
        text = " File Explorer",
        highlight = "BufferLineFill",
        padding = 0,
      },
      {
        filetype = "dbui",
        text = "󰆺 DBUI",
        highlight = "bufferlinefill",
      },
    },
  },
}
